#ifndef PATIENTMANAGERWIDGET_H
#define PATIENTMANAGERWIDGET_H


#include "LeftWidget.h"
#include "RightUserWidget.h"

#include "PatientManagerWidget_global.h"
#include "../BaseWidgets/BaseMainWidget.h"
#include "../../DataManager/UserRepository/UserRepository.h"

#include <QWidget>
namespace UserManagementSystem {
class PATIENTMANAGERWIDGET_EXPORT PatientManagerWidget:public BaseMainWidget
{
public:
    PatientManagerWidget(QWidget * parent=nullptr);

    //初始化布局
    void InitDefaultLayout();

    //初始化样式
    void InitDefaultStyle();


private:
    ///@brief 额外的布局
    QHBoxLayout* m_mainLayout=nullptr;

    ///@brief 左侧的窗口
    UserManagementSystem::LeftWidget*  m_leftWidget=nullptr;

    ///@brief 右侧的窗口
    UserManagementSystem::RightUserWidget* m_rightUserWidget=nullptr;

    ///@brief 从数据库读所有数据
    UserManagementSystem::UserRepository* m_allDataFromDatabase=nullptr;

};

}


#endif // PATIENTMANAGERWIDGET_H
